<div class="form-horizontal business-config-sysinfo container">
    <legend class="">系统信息</legend>
    <fieldset>
        <div class="control-group mt10">
            <label class="control-label">版本：</label>
            <div class="controls pt">
                <span>{{sysinfo.apm.version}}</span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">许可信息：</label>
            <div class="controls pt">
                <span>{{sysinfo.apm.licenseInfo}}</span>                
            </div>
        </div>
    </fieldset>

   
    <div class="op-buttons">    
        <button class="u-btn-blue" {{action "LicApply"}}>Lic申请</button>
        <button class="u-btn-blue" {{action "leadInDialog"}}>导入Lic</button>
     </div>


   <!--  <fieldset>
        <legend>系统信息</legend>
        <div class="control-group hostnameH">
            <label class="control-label">主机名：</label>
            <div class="controls pt">
                <span id="sHostName">{{sysinfo.osInfo.hostName}}</span>
                <button class="btn btn-link" {{action "hostNameModify"}}>修改</button>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">处理器：</label>
            <div class="controls pt">
                <span>{{sysinfo.osInfo.processor.info}}</span>
                <span class="pos-margin">负荷：</span>
                <span class="font-color">{{formatavgload sysinfo.osInfo.processor.avgload}}</span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">内存：</label>
            <div class="controls pt">
                <span>{{formatmemtotal sysinfo.osInfo.memory.total}}</span>
                <span class="pos-margin">已使用：</span>
                <span class="font-color">{{formatusage sysinfo.osInfo.memory.usage}}</span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">磁盘：</label>
            <div class="controls pt">
                <span>{{formattotal sysinfo.osInfo.systemDisk.total}}</span>
                <span class="pos-margin">已使用：</span>
                <span class="font-color">{{formatusage sysinfo.osInfo.systemDisk.usage}}</span>
            </div>
        </div>
    </fieldset>
    <fieldset>
        <legend>系统时间</legend>
        <div class="control-group">
            <span id="date-style">{{formattime sysinfo.systemTime.time}}</span>
            {{#if isDisabled}}
            {{else}}
            <p>已经与{{sysinfo.systemTime.syncServer}}同步</p>                
            {{/if}}             
            <button class="btn btn-link" {{action "timeModify"}}>修改时间</button>
            <button class="btn btn-link" {{action "tsChosen"}}>{{btntext}}</button>
            <button class="btn btn-link" disabled={{isDisabled}} {{action "syncServerModify"}}>修改时间服务器</button>
        </div>     
    </fieldset>
    <fieldset>
        <legend>网络</legend>
        <div class="control-group">
            <label class="control-label">管理接口：</label>
            <div class="controls">
                <span>{{sysinfo.network.managerInterface.name}}</span>
                <button class="btn btn-link" {{action "ManagementInterfaceModify"}}>修改</button>
            </div>
        </div>
        <div class="control-group">
            <div class="info-item">
                <label>地址：</label>
                <span class="mISpan">{{sysinfo.network.managerInterface.ip}}</span>
            </div>
            <div class="info-item">
                <label>掩码：</label>
                <span class="mISpan">{{sysinfo.network.managerInterface.netmask}}</span>
            </div>
            <div class="info-item">
                <label>网关：</label>
                <span class="mISpan">{{sysinfo.network.managerInterface.gateway}}</span>
            </div>
            <div class="info-item">
                <label>DNS服务器：</label>
                <span class="dns-style mISpan" title="{{sysinfo.network.managerInterface.dns}}">{{sysinfo.network.managerInterface.dns}}</span>
            </div>
        </div>
        {{#each monitorIFS as |monitor|}}
            <div class="control-group pt">
                <label class="control-label">监控接口</label>
                <div class="controls">
                	<span>{{monitor.name}}</span>
            	</div>
            </div>
            <div class="control-group">
                <div class="info-item">
                    <label>已接收：</label>
                    <span class="font-color">{{formatrxPackage monitor.rxPackage}}</span>
                </div>
                <div class="info-item">
                    <label>收包速率：</label>
                    <span class="font-color">{{formatrxPackageRate monitor.rxPackageRate}}</span>
                </div>
                <div class="info-item">
                    <label>接收字节：</label>
                    <span class="font-color">{{formatrxByte monitor.rxByte}}</span>
                </div>
                <div class="info-item">
                    <label>接收速率：</label>
                    <span class="font-color">{{formatrxByteRate monitor.rxByteRate}}</span>
                </div>
            </div>
        {{/each}}
    </fieldset>    --> 
</div>

{{#view view.Dialog
        id="setLicName"
        class="hide apm-dialog-wrap common-popUp sysinfo-setlic"
        autoOpen=false
        modal=true
        width=400
        height=230
        resizable=false
        title="申请Lic"
        buttons=dialogButtons}}
        <form class="form-horizontal">
            
            <div class="control-group">
                <label class="group-title">客户名称</label>
                <div class="group-content">
                    {{input type="text" class="u-input-blue" placeholder="请输入客户名称" value=serviceInputName}}
                </div>
                {{!-- <div {{bind-attr class=" setLicName::hide"}}>{{setLicName}}</div> --}}
                <p class="errorInfoTip">
                    <span {{bind-attr class="setLicName::hide"}}>{{setLicName}}</span>
                </p>
            </div>
        </form>
    {{/view}}

{{#view view.Dialog
    id="config-Lic-leadIn"
    title="License文件导入"
    class="config-modulel7-dialog1 hide common-popUp"
    width=460
    height=240
    resizable=false
    autoOpen=false
    modal=true}}
    <div id="dialog" {{bind-attr class="showImg:hide"}}>
        {{!-- <div {{bind-attr class=":alert alertType formTip::hide"}}><strong>{{formTip}}</strong></div> --}}
        <form enctype="multipart/form-data" name="leadForm" id="leadForm" target="ipfixIframe">
            <div class="control-group">
                <label class="group-title">上传License文件:</label>
                <div class="group-content">
                    <div class="fileControls">
                      <input type="file" id="File" name="soFile" value="" onchange="document.getElementById('FileText').value = this.value;"   />
                    </div>
                    <input type="text"  id="FileText" class="u-input-blue"/>
                    <span class="input-group-btn">
                      <button class="u-btn-blue" onclick="document.getElementById('File').click();">浏 览</button>
                    </span>
                </div>
                <p class="errorInfoTip">
                    <span {{bind-attr class="formTip::hide"}}>{{formTip}}</span>
                </p>
            </div>
            <div class="control-group">
                <div class="group-options mt10">
                    <button type="button" {{action "leadIn"}}   class="u-btn-blue">导入</button>
                    <button type="button" {{action "closeDialog"}} class="u-btn-blue">取消</button>
                </div>
            </div>
        </form>             
    </div>
    <div {{bind-attr class="showImg::hide"}}>
        <img class="progressBar" src="../web/apps/config/img/progress.gif" alt="进度条">
    </div>  
{{/view}}

{{#view view.Dialog
    id="configSysinfoHostNameModify"
    title="修改主机名"
    class="apm-dialog-wrap hide"
    autoOpen=false
    modal=true
    width=450
    buttons=dialogButtons}}
    <form class="form-horizontal">
        <div {{bind-attr class=":alert hostNameMTip::hide"}}><strong>{{hostNameMTip}}</strong></div>
        <div class="control-group w100">
            <label class="control-label">主机名</label>
            <div class="controls">
                {{input class="hostNameInput input" value=tempHostName}}
            </div>
        </div>        
    </form>
{{/view}}

{{#view view.Dialog
    id="configSysinfoTimeModify"
    title="修改时间"
    class="apm-dialog-wrap hide"
    autoOpen=false
    modal=true
    width=450
    buttons=dialogButtons}}
    <form class="form-horizontal" id="timeModify">
        <div {{bind-attr class=":alert timeMTip::hide"}}><strong>{{timeMTip}}</strong></div>
        <div class="control-group w100">
            <label class="control-label">时间</label>
            {{view view.parentView.TimeInput class="timeInput" value=tempHour}}<strong>:</strong>
            {{view view.parentView.TimeInput class="timeInput" value=tempMinute}}<strong>:</strong>
            {{view view.parentView.TimeInput class="timeInput" value=tempSecond}}
        </div>        
    </form>
{{/view}}

{{#view view.Dialog
    id="configSysinfoSyncServerModify"
    title="修改时间服务器"
    class="apm-dialog-wrap hide"
    autoOpen=false
    modal=true
    width=450
    buttons=dialogButtons}}
    <form class="form-horizontal">
        <div {{bind-attr class=":alert syncServerMTip::hide"}}><strong>{{syncServerMTip}}</strong></div>
        <p>与时间服务器同步</p>      
        <div class="control-group w100">
            <label class="control-label">服务器</label>
            <div class="controls">
                {{input class="syncServerInput input" value=tempServer}}
            </div>
        </div>        
    </form>
{{/view}}

{{#view view.Dialog
    id="configSysinfoMIModify"
    title="修改管理接口"
    class="apm-dialog-wrap hide"
    autoOpen=false
    modal=true
    width=450
    buttons=dialogButtons}}
    <form class="form-horizontal">
        <div {{bind-attr class=":alert MIMTip::hide"}}><strong>{{MIMTip}}</strong></div>
        <div class="control-group w100">
            <label class="control-label">地址</label>
            <div class="controls">
                {{view view.parentView.MIInput class="mIInput input" value=tempIp}}
            </div>
        </div> 
        <div class="control-group w100">
            <label class="control-label">掩码</label>
            <div class="controls">
                {{view view.parentView.MIInput class="mIInput input" value=tempNetmask}}
            </div>
        </div> 
        <div class="control-group w100">
            <label class="control-label">网关</label>
            <div class="controls">
                {{view view.parentView.MIInput class="mIInput input" value=tempGateway}}
            </div>
        </div> 
        <div class="control-group w100">
            <label class="control-label">DNS服务器</label>
            <div class="controls">
                {{view view.parentView.MIInput class="mIInput mIInputMargin input" value=dns.0.value}}
                {{view view.parentView.MIInput class="mIInput mIInputMargin input" value=dns.1.value}}
            </div>
        </div>        
    </form>
{{/view}}
<iframe name="ipfixIframe" hspace="0" vspace="0" frameborder="0" scrolling="no" src="#"  class="config-iframe-unshow"></iframe>
